Skip to content

chore(template): 新建项目模板改用规范 launchConfig 字段 - #38

Open
X-SCI-TECH wants to merge 1 commit into
SuperMonster003:masterfrom
X-SCI-TECH:chore/project-template-canonical-fields
Open

X-SCI-TECH wants to merge 1 commit into
SuperMonster003:masterfrom
X-SCI-TECH:chore/project-template-canonical-fields

Conversation

@X-SCI-TECH

Copy link
Copy Markdown

变更

assets/template/project.json 的 launchConfig 仍为旧字段:

displaySplash / hideLogs / splashText / stableMode

本 PR 迁移为 AutoJs6 6.8.0 规范字段:

  • displaySplash: true → splashVisible: true
  • hideLogs: false → logsVisible: true(取反)
  • splashText: "Powered by AutoJs6" → slug: "Powered by AutoJs6"
  • 移除已不存在的 stableMode
  • 补齐 launcherVisible / logShortcutVisible / settingsShortcutVisible / runOnBoot / requiresSharedStorage 默认值

原因

扩展生成的模板会进入用户项目,而 LaunchConfig.applyOriginalJsonKeys() 会把源文件里的旧键原样写回,导致旧字段长期扩散。

说明

  • 占位符 %PROJECT_NAME_PLACEHOLDER% / %PACKAGE_SUFFIX_PLACEHOLDER% 保持不变
  • 顶层 encryptLevel / optimization / scripts 未在本次范围内改动

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant